﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="PropertyDirectory.aspx.vb" Inherits="PropertyDirectory" MasterPageFile="~/MainLayout.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">
        <script type="text/javascript" src="scripts/overlib.js"></script>
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <div>
        <h1>Property Directory Search</h1>
        <hr />
        
    <div runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
    </div>
    <div runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">

        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />

    </div>

<p><%--Description of the page--%></p>

<!--Slide Out Adv Search Here-->
<asp:Panel ID="pnlFilter" runat="server">


<table class="SearchFilter" width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
  <tr>
    <td width="30">&nbsp;</td>
    <td width="120">Project Name</td>
    <td width="250"><asp:TextBox ID="txtProjectName" runat="server" Width="300px" /></td>
    <td width="30">&nbsp;</td>
    <td width="120">Project Description</td>
    <td width="250">
        <asp:TextBox ID="txtDescription" runat="server" Width="300px" /> 
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Project Location</td>
    <td colspan="5"><asp:TextBox ID="txtLocation" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
   
  </tr>
 
 <%-- <tr>
    <td>&nbsp;</td>
    <td>Price</td>
    <td colspan="4"><asp:TextBox ID="txtPriceMin" runat="server" Width="300px" /> to <asp:TextBox ID="txtPriceMax" runat="server" Width="300" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>--%>

  <tr>
    <td>&nbsp;</td>
    <td colspan="5" align="right"><div style="border-top: 1px solid #c2c2c2; height:20px; padding-top:10px; "><asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="search-btn" Width="80" />    
        <asp:Button ID="btnResetSearchFilter" runat="server" Text="Reset" CssClass="search-btn" Width="60" /></div>
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </tbody>

</table>

<br />

<!--Result Pane Here-->

</asp:Panel>
       
<table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
        
            <table class="ResultPanelHeader" border="0" width="100%">
                <tr>
                    <td><asp:label ID="lblHeadNoOfItem" runat="server" Text="0" />&nbsp;items total</td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
           
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay" id="PropertyList">
            <thead >
                <tr>
                    <th scope="col" id="first-col"><strong><asp:LinkButton ID="lnkName" runat="server" Text="Project Name▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkLocation" runat="server" Text="Project Location▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkDescription" runat="server" Text="Project Description▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    
                    <th scope="col"><strong><asp:LinkButton ID="lnkPrice" runat="server" Text="Price▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                     <th scope="col"></th>
                   
                </tr>
            </thead> 
            <tbody>
                <asp:Repeater ID="repUpload" runat="server">
                    <ItemTemplate>
                        <tr>
                        <%--edited by minginn @13/4/11 to allow user view the property by clicking the row--%>                          
                                <asp:Label ID="lblProjectId" runat="server" Text='<%#Container.DataItem("ProjectId").ToString%>' Visible="false" />
                                                
                                <td id="first-col"><asp:LinkButton ID="lnlProjectName" runat="server" Text='<%#Container.DataItem("ProjectName").ToString%>' CommandArgument='<%#Container.DataItem("ProjectId").ToString%>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblLocation" runat="server" Text='<%#Container.DataItem("ProjectLocation").ToString%>' CommandArgument='<%#Container.DataItem("ProjectId").ToString%>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblDescription" runat="server" Text='<%#Container.DataItem("ProjectDetails").ToString%>' CommandArgument='<%#Container.DataItem("ProjectId").ToString%>' CommandName="ViewList" /></td>
                                
                                <td><asp:LinkButton ID="lblRepPrice" runat="server" Text='<%#Container.DataItem("ProjectPrice").ToString%>' CommandArgument='<%#Container.DataItem("ProjectId").ToString%>' CommandName="ViewList" /></td>
                                <td>
                                          <asp:ImageButton ID="imgRepDelete" runat="server" ImageUrl="~/images/style01/DeleteButton.png" Style="vertical-align: middle;" AlternateText="Delete" CommandName="DeleteItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                          <cc1:ConfirmButtonExtender ID="cbe" runat="server" TargetControlID="imgRepDelete" ConfirmText="Are you sure you want to delete?"     />
                                </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
               </tbody>
            </table>
            
      </td>
    </tr>
    <tr>
        <td>
            <table class="ResultPanelFooter" width="100%">
                <tr>
                    <td ><asp:label ID="lblFootNoOfItem" runat="server" Text="0" />&nbsp; items total</td>
                    <td align="center" valign="middle">
                        <asp:Panel ID="pnlNavigation" runat="server" style="text-align:center; vertical-align:middle;">
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png"   ID="btnMoveFirst"  runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png"    ID="btnPrevious"   runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" style="text-align:center; vertical-align:middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" style="vertical-align: middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png"      ID="btnGo"          runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png"  ID="btnNext"        runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png"    ID="btnMoveLast"    runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>
                                <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" style="vertical-align:middle;"/>
                      </asp:Panel>
                    </td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

<asp:Label ID="lblhidSortType" runat="server" Visible="false" Text=" ORDER BY ProjectName DESC" />
    </div>
</asp:Content>


